package com.ruoyi.im.service.impl;

import com.ruoyi.common.support.Convert;
import com.ruoyi.im.domain.GroupGroupingDetails;
import com.ruoyi.im.mapper.GroupGroupingDetailsMapper;
import com.ruoyi.im.service.IGroupGroupingDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户群分组明细 服务层实现
 * 
 * @author lxs
 * @date 2018-11-09
 */
@Service
public class GroupGroupingDetailsServiceImpl implements IGroupGroupingDetailsService
{
	@Autowired
	private GroupGroupingDetailsMapper groupGroupingDetailsMapper;

	/**
     * 查询用户群分组明细信息
     * 
     * @param id 用户群分组明细ID
     * @return 用户群分组明细信息
     */
    @Override
	public GroupGroupingDetails selectGroupGroupingDetailsById(Long id)
	{
	    return groupGroupingDetailsMapper.selectGroupGroupingDetailsById(id);
	}
	
	/**
     * 查询用户群分组明细列表
     * 
     * @param groupGroupingDetails 用户群分组明细信息
     * @return 用户群分组明细集合
     */
	@Override
	public List<GroupGroupingDetails> selectGroupGroupingDetailsList(GroupGroupingDetails groupGroupingDetails)
	{
	    return groupGroupingDetailsMapper.selectGroupGroupingDetailsList(groupGroupingDetails);
	}
	
    /**
     * 新增用户群分组明细
     * 
     * @param groupGroupingDetails 用户群分组明细信息
     * @return 结果
     */
	@Override
	public int insertGroupGroupingDetails(GroupGroupingDetails groupGroupingDetails)
	{
	    return groupGroupingDetailsMapper.insertGroupGroupingDetails(groupGroupingDetails);
	}
	
	/**
     * 修改用户群分组明细
     * 
     * @param groupGroupingDetails 用户群分组明细信息
     * @return 结果
     */
	@Override
	public int updateGroupGroupingDetails(GroupGroupingDetails groupGroupingDetails)
	{
	    return groupGroupingDetailsMapper.updateGroupGroupingDetails(groupGroupingDetails);
	}

	/**
     * 删除用户群分组明细对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteGroupGroupingDetailsByIds(String ids)
	{
		return groupGroupingDetailsMapper.deleteGroupGroupingDetailsByIds(Convert.toStrArray(ids));
	}
	
}
